package com.yuanian.wf.context.task;


import com.yuanian.wf.context.Context;
import com.yuanian.wf.pojo.dto.CompleteTaskDto;
import com.yuanian.wf.pojo.enums.EventType;


public class CompleteTaskBeforeContext<T> implements Context {

    protected CompleteTaskDto<T> completeTaskDto;

    public CompleteTaskBeforeContext(CompleteTaskDto<T> completeTaskDto) {
        this.completeTaskDto = completeTaskDto;
    }

    @Override
    public EventType getWfEventType() {
        return EventType.COMPLETETASK;
    }

    public CompleteTaskDto<T> getCompleteTaskDto() {
        return completeTaskDto;
    }
}
